<?php
/**
 * Created by b17
 * 3/5/12 5:44 PM
 */

namespace Managers\Widget;

class LastIssueWidget extends AbstractWidget
{
    public function init()
    {
        parent::init();
        $pdfManger = new \Managers\PdfFile();
        $cacheProxy = new \Managers\ProxyCacheManager($pdfManger);
        $pdf = $cacheProxy->getLast();
        $this->view->pdf = $pdf;
    }

    /**
     * Название файла для вывода.
     *
     */
    public function getScriptName()
    {
        return "/widget/lastissue.phtml";
    }
}
